package com.solution.model;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SchdCronTriggers
 */
@Entity
@Table(name="SCHD_CRON_TRIGGERS"
	, schema="public"
    , uniqueConstraints = @UniqueConstraint(columnNames={"Trigger_Name", "Trigger_Group"}) 
)
public class SchdCronTriggers extends AbstractPO
 {

	
	private static final long serialVersionUID = 1L;
	
    private Long id;
    private String triggerName;
    private String triggerGroup;
    private String cronExpression;
    private String timeZoneId;
 
    @SequenceGenerator(name="generator", sequenceName="schd_cron_trigger_seq")@Id @GeneratedValue(strategy=SEQUENCE, generator="generator")
   
    @Column(name="Cron_Trigger_ID", unique=true, nullable=false, precision=10, scale=0)
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    @Column(name="Trigger_Name", nullable=false, length=80)
    public String getTriggerName() {
        return this.triggerName;
    }
    
    public void setTriggerName(String triggerName) {
        this.triggerName = triggerName;
    }
    
    @Column(name="Trigger_Group", nullable=false, length=80)
    public String getTriggerGroup() {
        return this.triggerGroup;
    }
    
    public void setTriggerGroup(String triggerGroup) {
        this.triggerGroup = triggerGroup;
    }
    
    @Column(name="Cron_Expression", nullable=false, length=80)
    public String getCronExpression() {
        return this.cronExpression;
    }
    
    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }
    
    @Column(name="Time_Zone_ID", length=80)
    public String getTimeZoneId() {
        return this.timeZoneId;
    }
    
    public void setTimeZoneId(String timeZoneId) {
        this.timeZoneId = timeZoneId;
    }




}


